﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Domain.Entities
{
    ///<summary>
    /// 菜单表
    ///</summary>
    [SugarTable("Menu", TableDescription = "菜单表")]
    public partial class Menu
    {

        /// <summary>
        /// 编号
        /// 主键，必填，自增长，
        /// 默认值 0
        /// </summary>     
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "编号")]
        public long Id { get; set; }

        /// <summary>
        /// 名称
        /// 必填
        /// 默认值 null
        /// </summary>    
        [SugarColumn(IsNullable = false, ColumnDescription = "名称")]
        public string Name { get; set; }

        /// <summary>
        /// 父菜单Id
        /// 必填
        /// 默认值为0
        /// </summary>    
        [SugarColumn(IsNullable = false, ColumnDescription = "父菜单Id")]
        public long ParentId { get; set; }

        /// <summary>
        /// 网址路径
        /// 必填
        /// </summary>    
        [SugarColumn(IsNullable = false, ColumnDescription = "路径")]
        /// </summary>           
        public string Url { get; set; }

        /// <summary>
        /// 文件路径
        /// </summary>    
        [SugarColumn(IsNullable = false, ColumnDescription = "文件路径")]
        public string FilePath { get; set; }

        /// <summary>
        /// 图标
        /// 必填
        /// </summary>    
        [SugarColumn(IsNullable = false, ColumnDescription = "图标")]
        public string? Icon { get; set; }

        /// <summary>
        /// 是否可用
        /// 必填
        /// </summary>    
        [SugarColumn(IsNullable = false, ColumnDescription = "是否可用")]
        /// </summary>           
        public bool Enable { get; set; }

        /// <summary>
        /// 排序顺序
        /// 必填
        /// 默认值为0
        /// </summary>    
        [SugarColumn(IsNullable = false, ColumnDescription = "排序顺序，越大排序越靠后")]
        public int SortOrder { get; set; }

    }
}
